package com.example.cameraxdemo

import android.app.Application

class MyApp: Application() {

     companion object{
         var app: MyApp? = null
             private set

         fun getInstance(): MyApp? {
             return app
         }
     }

    override fun onCreate() {
        super.onCreate()
        app = this
    }
}